package css.sword.util;

import org.apache.http.nio.client.HttpAsyncClient;

public class HttpClientFactory {

    private static HttpAsyncClientUtil httpAsyncClient = new HttpAsyncClientUtil();

    private static HttpSyncClient httpSyncClient = new HttpSyncClient();

    private HttpClientFactory() {
    }

    private static HttpClientFactory httpClientFactory = new HttpClientFactory();

    public static HttpClientFactory getInstance() {

        return httpClientFactory;

    }

    public HttpAsyncClientUtil getHttpAsyncClientPool() {
        return httpAsyncClient;
    }

    public HttpSyncClient getHttpSyncClientPool() {
        return httpSyncClient;
    }

}
